The First Line of Code by Lin Guo
Author:Lin Guo
Language: eng
Format: epub
ISBN: 9789811918001
Publisher: Springer Nature Singapore
The error message said Permission Denial, and this is because we have to treat dangerous permission as runtime permissions for Android 6.0 and above.
Let us try to fix this problem by updating MainActivity as code below: class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
makeCall.setOnClickListener {
if (ContextCompat.checkSelfPermission(this,
Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this,
arrayOf(Manifest.permission.CALL_PHONE), 1)
} else {
call()
}
}
}
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(6692)
Robo-Advisor with Python by Aki Ranin(6620)
Offensive Shellcode from Scratch by Rishalin Pillay(5540)
Ego Is the Enemy by Ryan Holiday(4670)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4326)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(4011)
Python for ArcGIS Pro by Silas Toms Bill Parker(3633)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3337)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3160)
Speed Up Your Python with Rust by Maxwell Flitton(3115)
Liar's Poker by Michael Lewis(3090)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3089)
Extreme DAX by Michiel Rozema & Henk Vlootman(3061)
Agile Security Operations by Hinne Hettema(3023)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3010)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3007)
Essential Cryptography for JavaScript Developers by Alessandro Segala(2980)
Cryptography Algorithms by Massimo Bertaccini(2892)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2877)
